package com.systop.asset.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 处置单对象 disposal
 * 
 * @author mc
 * @date 2025-07-03
 */
public class Disposal extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 处置单ID */
    private Long id;

    /** 处置单号 */
    private String orderNo;

    /** 处置类型 1-报废清理 2-盘亏处理 3-毁损清理 4-丢失 5-其他 */
    private Integer type;

    /** 状态 0-待处置 1-已处置 2-已取消 */
    private Integer status;

    /** 数量（耗材自动统计预留） */
    private Long quantity;
    /** 处置类别 0-资产 1-耗材*/
    private Integer typeCate;

    /** 操作人 */
    private Long operator;
    /**
     * 操作人名称
     */
    private String username;

    /** 处置原因 */
    private String reason;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    /** 处置资产详情单*/
    private List<DisposalDetail> assets;
    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }

    public Long getOperator() {
        return operator;
    }

    public void setOperator(Long operator) {
        this.operator = operator;
    }

    public void setReason(String reason)
    {
        this.reason = reason;
    }

    public String getReason() 
    {
        return reason;
    }

    public Integer getTypeCate() {
        return typeCate;
    }

    public void setTypeCate(Integer typeCate) {
        this.typeCate = typeCate;
    }

    public List<DisposalDetail> getAssets() {
        return assets;
    }

    public void setAssets(List<DisposalDetail> assets) {
        this.assets = assets;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderNo", getOrderNo())
            .append("type", getType())
            .append("status", getStatus())
            .append("quantity", getQuantity())
            .append("operator", getOperator())
            .append("reason", getReason())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
